panic (someone) with

Translations
впадать в панику из-за
They panicked themselves with thoughts of failure.
Они впадали в панику из-за мыслей о неудаче.